Skip to content

build(deps-dev): bump sinon from 18.0.1 to 22.0.0#3149

Merged
lahirumaramba merged 2 commits into
v14from
lm-bump-sinon
May 15, 2026
Merged

build(deps-dev): bump sinon from 18.0.1 to 22.0.0#3149
lahirumaramba merged 2 commits into
v14from
lm-bump-sinon

Conversation

@lahirumaramba
Copy link
Copy Markdown
Member

Update @types/sinon to 21.0.1 and fix fake timer test leaks

Bumps [sinon](https://github.com/sinonjs/sinon) from 18.0.1 to 22.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](sinonjs/sinon@v18.0.1...v22.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-version: 22.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades sinon to version 22.0.0 and its associated types to 21.0.1. As part of this upgrade, several unit tests in api-request.spec.ts and jwt.spec.ts were updated to use the modern object-based configuration for sinon.useFakeTimers. The reviewer suggested further hardening these test configurations by adding the shouldClearNativeTimers: true option to ensure native timers are properly cleared and to prevent potential test leaks.

Comment thread test/unit/utils/api-request.spec.ts
Comment thread test/unit/utils/jwt.spec.ts
Comment thread test/unit/utils/jwt.spec.ts
Copy link
Copy Markdown
Collaborator

@jonathanedey jonathanedey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@lahirumaramba lahirumaramba merged commit 0511cb7 into v14 May 15, 2026
14 checks passed
@lahirumaramba lahirumaramba deleted the lm-bump-sinon branch May 15, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants